/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wudt;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author Jadalbert
 */
@ManagedBean
@ViewScoped
public class medium implements Serializable {

    /**
     * Creates a new instance of medium
     */
    public medium() {
        System.out.println("Nowy obiekt.");
    }
    
    private String name = "woda";
    private Integer workCondNo = 1;
    private double po = 1.0;
    private double to = 20.0;

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the po
     */
    public double getPo() {
        return po;
    }

    /**
     * @param po the po to set
     */
    public void setPo(double po) {
        this.po = po;
    }

    /**
     * @return the to
     */
    public double getTo() {
        return to;
    }

    /**
     * @param to the to to set
     */
    public void setTo(double to) {
        this.to = to;
    }

    /**
     * @return the workCondNo
     */
    public Integer getWorkCondNo() {
        return workCondNo;
    }

    /**
     * @param workCondNo the workCondNo to set
     */
    public void setWorkCondNo(Integer workCondNo) {
        this.workCondNo = workCondNo++;
    }
}
